package com.fr.report.painter.shape;

import java.awt.Shape;
import java.awt.geom.GeneralPath;

public class IssoscelesTriangleShapePainter extends AbstractShapePainter
{
  public Shape getShape(double paramDouble1, double paramDouble2)
  {
    double[] arrayOfDouble1 = { 0.0D, paramDouble1 / 2.0D, paramDouble1 };
    double[] arrayOfDouble2 = { paramDouble2, 0.0D, paramDouble2 };
    GeneralPath localGeneralPath = new GeneralPath(0, arrayOfDouble1.length);
    localGeneralPath.moveTo((float)arrayOfDouble1[0], (float)arrayOfDouble2[0]);
    for (int i = 1; i < arrayOfDouble1.length; ++i)
      localGeneralPath.lineTo((float)arrayOfDouble1[i], (float)arrayOfDouble2[i]);
    localGeneralPath.closePath();
    return localGeneralPath;
  }
}